﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FindAllCompany.aspx.cs"
    Inherits="HZ.Supervise.Web.Common.FindAllCompany" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>选择地区</title>
    <link rel="stylesheet" type="text/css" href="../style/global.css" />

    <script type="text/javascript" src="../scripts/jquery.js"></script>

    <script type="text/javascript" src="../scripts/mainlistSelect.js"></script>

    <script type="text/javascript" src="../scripts/Common.js"></script>

    <script type="text/javascript" src="../scripts/global.js"></script>

    <script type="text/javascript" language="javascript">
        function addCompanyInfo(CompanyId, CompanyName) {
            opener.insertCompanyInfo(CompanyId, CompanyName);
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="listsearch">
        <table class="querylist">
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblQueryCondition" runat="server" Text="企业名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                </td>
                <td style="width: 60px">
                    <hz:HzButton ID="btnQery" runat="server" Text="查询" CssClass="btn" Width="50px" OnClick="btnQery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <table class="querylist">
        <tr>
            <td width="40%">
                选择企业：
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvwCompany" runat="server" CssClass="mainlist" AutoGenerateColumns="False"
                    DataKeyNames="CompanyId"
                    EmptyDataText="暂无符合条件的数据！">
                    <Columns>
                        <asp:TemplateField HeaderText="企业名称">
                            <ItemTemplate>
                                <a href="#" onclick="addCompanyInfo('<%# Eval("CompanyId") %>','<%# Eval("CompanyName")%>');"><%# Eval("CompanyName") %></a>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
